﻿using System;
using System.Data;
using System.Configuration;
//using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

/// <summary>
/// Summary description for CalculateFYear
/// </summary>
public class CalculateFYear
{
	public CalculateFYear()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static string calculate(string strdate)
    {
        DateTime strdate1 = Convert.ToDateTime(strdate);
        string str = "";
        if (strdate1.Month> 3)
        {
            str = strdate1.Year.ToString() + "-" + (strdate1.Year + 1).ToString().Remove(0, 2);
        }
        else
        {
            str = (strdate1.Year - 1).ToString() + "-" + (strdate1.Year).ToString().Remove(0, 2);
        }
        return str;
    }
    public static string calculate(DateTime strdate)
    {
        //DateTime strdate1 = Convert.ToDateTime(strdate);
        string str = "";
        if (strdate.Month > 3)
        {
            str = strdate.Year.ToString() + "-" + (strdate.Year + 1).ToString().Remove(0, 2);
        }
        else
        {
            str = (strdate.Year - 1).ToString() + "-" + (strdate.Year).ToString().Remove(0, 2);
        }
        return str;
    }
    public static string calculate()
    {
        //DateTime strdate1 = Convert.ToDateTime(strdate);
        string str = "";
        if (DateTime.Now.Month > 3)
        {
            str = DateTime.Now.Year.ToString() + "-" + (DateTime.Now.Year + 1).ToString().Remove(0, 2);
        }
        else
        {
            str = (DateTime.Now.Year - 1).ToString() + "-" + (DateTime.Now.Year).ToString().Remove(0, 2);
        }
        return str;
    }
}
